From: Georges Basile Stavracas Neto Date: Fri, 27 Nov 2020 13:59:29 +0000 (-0300) Subject: overviewControls: Remove ControlsLayout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~710 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=491a69a5a2bbff963364c5b39733ea7b58a79c2f;p=gnome-shell.git overviewControls: Remove ControlsLayout ControlsLayout is a tiny layout manager whose only purpose is emit "allocation-changed" after allocation. This signal was listened to update the workspaces actual geometry. However, since d66cd0d2067a, ControlsManager doesn't listen to this signal anymore, rendering the class useless. Remove ControlsLayout. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index b5e89bb16..3d313e7d4 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -394,21 +394,11 @@ class DashSpacer extends St.Widget { } }); -var ControlsLayout = GObject.registerClass({ - Signals: { 'allocation-changed': {} }, -}, class ControlsLayout extends Clutter.BinLayout { - vfunc_allocate(container, box) { - super.vfunc_allocate(container, box); - this.emit('allocation-changed'); - } -}); - var ControlsManager = GObject.registerClass( class ControlsManager extends St.Widget { _init(searchEntry) { - let layout = new ControlsLayout(); super._init({ - layout_manager: layout, + layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true, clip_to_allocation: true,